import api from "@/api";
import http from "@/utils/http";
import utils from "@/utils";
import validate from "@/utils/validate";
import modal from './modal'
import { Local , Session } from './storage'
import { resetForm } from '@/utils/app'

export function setupGlobalProperties(app) {
    app.config.globalProperties.$A = api
    app.config.globalProperties.$H = http
    app.config.globalProperties.$U = utils
    app.config.globalProperties.$V = validate  //验证方法
    app.config.globalProperties.$modal = modal  // 模态框对象
    app.config.globalProperties.$SS = Session
    app.config.globalProperties.$LS = Local
    app.config.globalProperties.resetForm = resetForm
}
